import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:vdrag_saas/list/pages/home/filing_info.dart';
import 'package:vdrag_saas/list/pages/home/footer_item.dart';
import 'package:vdrag_saas/list/pages/home/footer_item1.dart';

class FooterBar extends StatelessWidget {
  List<String> items1 = [
    'IoTCenter物联网平台',
    'GEOVIS iReal视景仿真可视化引擎',
    'vDrag.SCADA数据采集与监控组态软件'
  ];
  List<String> urls1 = ['https://iotc.vdrag.cn/', '', 'https://vdrag.cn/'];
  List<String> items2 = ['重大危险源安全管理系统', '敏捷应急系统', '智慧管网系统'];
  List<String> items3 = ['园区事故风险评估模型', 'vDrag.SCADA组态软件', 'vDrag.Form报表工具'];
  List<String> items4 = [
    '陕西省西安市国家民用航天产业基地航拓路中段汇航广场B座7层',
    '15619056723（何经理）\n18991379879（马经理）'
  ];
  @override
  Widget build(BuildContext context) {
    const TextStyle style = TextStyle(
      fontSize: 12,
      color: Color(0xffeeeeee),
      fontFamily: '思源黑体',
      height: 1.5
    );
    return Container(
      constraints: const BoxConstraints(maxWidth: 1300),
      padding: EdgeInsetsDirectional.symmetric(horizontal: 15),
      child: Column(
        // mainAxisSize: MainAxisSize.min,        
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.start,
        children: [
          // const SizedBox(height: ,),
          Row(
            // mainAxisSize: MainAxisSize.min,
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Flexible(child: FooterItem("数字孪生平台", items1, urls1, 250)),
              Flexible(child: FooterItem("应用软件", items2, const ["","",""], 160)),
              Flexible(child: FooterItem("算法服务", items3, const ["","https://scada.vdrag.cn/#/",""], 150)),
              Flexible(child: FooterItem1("联系我们", items4, const ["", "", ""], 240)),
              Column(
                children: [
                  const SizedBox(height: 3,),
                  Row(
                    mainAxisSize: MainAxisSize.min,
                    children: [
                      const SizedBox(width: 30,),
                      Column(children: [
                        Image.asset('assets/images/geovis.png', width: 100, height: 100,),
                        const SizedBox(height: 6,),
                        const Text('中科星图', style: style)
                      ],),
                      const SizedBox(width: 20,),
                      Column(children: [
                        Image.asset('assets/images/geovis-jn.png', width: 100, height: 100,),
                        const SizedBox(height: 6,),
                        const Text('星图金能', style: style)
                      ],)
                   ],),
                ],
              ),
            ],
          ),
          const SizedBox(height: 20,),
          Expanded(child: FilingInfo())
        ],
      ),
    );
  }
}
